package com.xtxk.utils.sqlite;


import java.sql.Connection;
import java.sql.DriverManager;

import org.apache.log4j.Logger;



public class SqliteOperator {
	private static Logger log = Logger.getLogger(SqliteOperator.class);
	public static Connection getConnection(){
		Connection conn = null;
		String driverName = "org.sqlite.JDBC";
		try {
			Class.forName(driverName);
			conn= DriverManager.getConnection("jdbc:sqlite:"+SQLiteInfo.DB_NAME+".db");
		} catch (Exception e) {
			log.debug("Connect DataBase Error:"+e.getMessage());
		}
		
		return conn;
	}
	

}
